package org.apache.dolphinscheduler.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.dolphinscheduler.dao.entity.Model;
import org.apache.dolphinscheduler.dao.entity.Resource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelMapper extends BaseMapper<Model> {
    List<Model> getListByUserId(int userId);
    List<Model> getListById(int id);

    List<Model> getListByName(String alias,int userId);

    List<Model> getListByNames(String alias);

    void deleteModelById(int id);

    List<Model> queryModelPaging(@Param("pageSize") int pageSize,
                                 @Param("userId") int userId,
                                     @Param("pageNo") int pageNo,
                                     @Param("searchVal") String searchVal
                                        );
}
